<include file="Common/header" />

<body>
	<if condition=" !isset($id)  ">
		<div class="tab">
			<div class="tab-body">
				<br />
				<div class="tab-panel active" id="tab-set">
					<form method="post" class="form-x" action="{:U('Lmkj/Content/editAddCate')}">
						<div class="form-group">
							<div class="label">
								<label for="cate_title">顶级栏目名称:</label>
							</div>
							<div class="field">
								<input type="text" class="input" id="cate_title" name="cate_title" size="50" placeholder="顶级栏目名称" data-validate="required:请填写顶级栏目名称" />
							</div>
						</div>
						<div class="form-group">
							<div class="label">
								<label for="cate_sort">排序：</label>
							</div>
							<div class="field">
								<input type="text" class="input" id="cate_sort" name="cate_sort" size="50" placeholder="排序" data-validate="required:请填写排序" value="100" />
							</div>
						</div>

						<div class="form-button">
							<button class="button bg-main" type="submit" id="btn">提交</button>
						</div>
					</form>
				</div>
			</div>
		</div>
		<else />

		<div class="tab">
			<div class="tab-body">
				<br />
				<div class="tab-panel active" id="tab-set">
					<form method="post" class="form-x " action="{:U('Lmkj/Content/editAddCate')}" >
						<div class="form-group">
							<div class="label">
								<label for="cate_title">顶级栏目名称:</label>
							</div>
							<div class="field">
								<input type="text" class="input " id="cate_title" name="cate_title" size="50" placeholder="顶级栏目名称" data-validate="required:请填写顶级栏目名称" value="{$data.cate_title}"/>
							</div>
						</div>
						<div class="form-group">
							<div class="label">
								<label for="cate_sort">排序：</label>
							</div>
							<div class="field">
								<input type="text" class="input " id="cate_sort" name="cate_sort" size="50" placeholder="排序" data-validate="required:请填写排序" value="{$data.cate_sort}" />
							</div>
						</div>

						<div class="form-button">
							<input type="hidden" name="id" value="{$data.category_id}" />
							<button class="button bg-main" type="submit" id="btn">提交</button>
						</div>
					</form>
				</div>
			</div>
		</div>

	</if>
</body>

</html>